<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>试卷维护</title>
<%@include file="/view/common/js-css.jsp"%>
</head>
<body>
	<div id="frameWrapper" class="frameWrapper">
		<div class="titlebar">
			<p>
				当前位置：试卷管理<span>/</span>试卷维护<span>/</span>修改试卷
			</p>
		</div>
		<div class="formbar">
			<form name="updateGrade"
				action="${pageContext.request.contextPath }/PageServlet?command=addPaper"
				method="post">
				<div class="form_control">
					<span class="input-name">试卷名称：</span> <input class="required " type="text" name="paperName"
						data-tip="请输入试卷名称" data-valid="isNonEmpty||onlyInt"
						data-error="试卷名不能为空">
				</div>
				<div class="form_control noshadow">
					<span class="input-name">科目：</span> 
					<select name="subjectNo" class="required select" data-tip="请选择科目名称" data-valid="isNonEmpty" data-error="科目名称不能为空">
						<option value="">---请选择---</option>
						<c:forEach items="${subjectName }" var="subName">
						<option value="${subName.subject_id }">${subName.subject_name }</option>
						</c:forEach>
					<select/>
				</div>

				<div class="form_control">
					<span class="input-name">试题总分：</span> <input class="required" type="text" name="totalScore"
						data-tip="请输入总分数" data-valid="isNonEmpty" data-error="不能为空">
				</div>
				<div class="form_control">
					<span class="input-name">及格分数：</span> <input class="required" type="text" name="passScore"
						data-tip="请输入及格分数" data-valid="isNonEmpty" data-error="不能为空">
				</div>
				<div class="form_control">
					<span class="input-name">考试时间：</span> <input class="required" type="text" name="examTime"
						data-tip="考试时间" data-valid="isNonEmpty" data-error="不能为空">
				</div>
				<div class="form_control">
					<span class="input-name">单选题数：</span> <input class="required" type="text" name="singleNumber"
						data-tip="单选题数" data-valid="isNonEmpty" data-error="不能为空">
				</div>
				<div class="form_control">
					<span class="input-name">单选题总分：</span> <input class="required" type="text" name="singleScore"
						data-tip="单选题总分" data-valid="isNonEmpty" data-error="不能为空">
				</div>
				<div class="form_control">
					<span class="input-name">多选题数：</span> <input class="required" type="text" name="multiNumber"
						data-tip="多选题数" data-valid="isNonEmpty" data-error="不能为空">
				</div>
				<div class="form_control">
					<span class="input-name">多选题总分：</span> <input class="required" type="text" name="multiScore"
						data-tip="多选题总分" data-valid="isNonEmpty" data-error="不能为空">
				</div>
				<div class="form_control">
					<span class="input-name">判断题数：</span> <input class="required" type="text" name="judgeNumber"
						data-tip="判断题数" data-valid="isNonEmpty" data-error="不能为空">
				</div>
				<div class="form_control">
					<span class="input-name">判断题总分：</span> <input class="required" type="text" name="judgeScore"
						data-tip="判断题总分" data-valid="isNonEmpty" data-error="不能为空">
				</div>
				<div class="form_control noshadow">
					<span class="input-name">出题人：</span> 
					<select name="userId" class="required select" data-tip="请选择出题人" data-valid="isNonEmpty" data-error="出题人不能为空">
						<option value="">---请选择---</option>
						<c:forEach items="${userName }" var="uName">
						<option value="${uName.user_id }">${uName.username }</option>
						</c:forEach>
					<select/>
				</div>
				<div class="submit">
					<input type="submit" value="立即提交" />
				</div>
			</form>
		</div>
	</div>
</body>
</html>